<!--{subtemplate common/header}-->
<script type="text/javascript" src="{JS_PATH}Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="{THEME_PATH}js/area.js"></script>
<script>var ajaxurl = "{U('League/getArea')}";</script>
<div class="app_body">
  <form action="{U('league/doadd')}" method="post" name="doadd" class="doadd">
    <table width="100%">
      <tr>
        <td class="tdAlignRight">商店名称：</td>
        <td><input class="textStyleh35" type="text" name="company_name" class="join-input" id="company_name" value="" placeholder="请输入商店名称"  datatype="*3-18" errormsg="请输入商店名称" nullmsg="请输入商店名称"/>
          &nbsp;&nbsp;<font class="Validform_checktip"></font></td>
      </tr>
      <tr>
        <td class="tdAlignRight">请选择地区：</td>
        <td class="rzsjTd1"><select name="province" id="province" onChange="loadArea(this.value, 'city')">
            <option value="-1" selected>--请选择省份--</option>
            
            
                                           {loop $region $v}
                                            
            
            <option value="{$v[area_id]}" {if $editList[province] == $v[area_id]} selected="selected" {/if}>{$v[area_name]}</option>
            
            
                                            {/loop}
                                        
          
          </select></td>
      </tr>
      <tr>
        <td class="tdAlignRight">请选择地区：</td>
        <td class="rzsjTd1">
          <select name="city" id="city" onChange="loadArea(this.value, 'district')">
            
            
                                            {if $editList}
                                             
            
            <option value="{$editList['city']}">{$editList[cityName]} </option>
            
            
                                             {else}
                                               
            
            <option value="-1">--请选择城市--</option>
            
            
                                             {/if}
                                        
          
          </select></td>
      </tr>
      <tr>
        <td class="tdAlignRight">请选择地区：</td>
        <td class="rzsjTd1">
          <select name="district" id="district" onChange="loadArea(this.value, 'null')">
            
            
                                              {if $editList}
                                             
            
            <option value="{$editList['district']}">{$editList[districtName]} </option>
            
            
                                             {else}
                                              
            
            <option value="-1">--请选择地区--</option>
            
            
                                             {/if}
                                        
          
          </select></td>
      </tr>
      <tr>
        <td class="tdAlignRight">联系人：</td>
        <td><input class="textStyleh35" name="realname" id="realname" placeholder="请输入联系人" datatype="*" errormsg="请输入联系人" nullmsg="请输入联系人">
          &nbsp;&nbsp;<font class="Validform_checktip"></font></td>
      </tr>
      <tr>
        <td class="tdAlignRight">联系电话：</td>
        <td><input class="textStyleh35" name="phone" id="phone" value="" placeholder="请输入联系电话" datatype="m" errormsg="请输入联系电话" nullmsg="请输入联系电话">
          &nbsp;&nbsp;<font class="Validform_checktip"></font></td>
      </tr>
      <tr>
        <td class="tdAlignRight">商店地址：</td>
        <td><input class="textStyleh35" name="address" id="address" value="" placeholder="请输入商店地址" datatype="*" errormsg="请输入商店地址" nullmsg="请输入商店地址">
          &nbsp;&nbsp;<font class="Validform_checktip"></font></td>
      </tr>
      <tr>
        <td class="tdAlignRight">经营范围：</td>
        <td><input class="textStyleh35" type="text" name="business" id="business" placeholder="请输入经营范围" datatype="*" errormsg="请输入经营范围" nullmsg="请输入经营范围">
          &nbsp;&nbsp;<font class="Validform_checktip"></font></td>
      </tr>
      <tr>
        <td class="tdAlignRight">行业分类：</td>
        <td class="rzsjTd2"><select name="fenlei" id="fenlei"  class="shangjia_shaixuan" style="height:40px;">
            <option value="-1" selected>--请选择行业--</option>
            
                
              {loop $union_type $v}
                                            
            
                
                
            <option value="{$v[id]}">{$v[type_name]}</option>
            
                
                
                                            {/loop}
               
              
              
          </select></td>
      </tr>
      <tr>
        <td colspan="2" class="tdAlignCen"><button onclick="dosubmit();" class="shenqingjiameng">申请加盟</button></td>
      </tr>
    </table>
  </form>
</div>
<script type="text/javascript">
$(function(){
    $(".doadd").Validform({
        tiptype:3
    });
})
document.onkeydown = function(e){ 
    var ev = document.all ? window.event : e;
    if(ev.keyCode==13) {
        dosubmit();
    }
}
function dosubmit() {
    $("form[name=doadd]").submit();
}
</script>
<!--{subtemplate common/footer}--> 